PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


SetThemeDrawingState

Sets the drawing state of the current graphics port.

pascal OSStatus SetThemeDrawingState (
                     ThemeDrawingState inState,
                     Boolean inDisposeNow);
inState
A value of type ThemeDrawingState . Pass a ThemeDrawingState value such as that produced in the outState parameter of GetThemeDrawingState .
inDisposeNow
A value of type Boolean . Pass a value of true to release the memory allocated for the drawing state reference. Pass false if you wish to continue using the drawing state and do not want to dispose of the memory at this time; you must call DisposeThemeDrawingState to dispose of the memory any time before your application terminates.
function result
A result code; see Result Codes .
DISCUSSION

Your application can save the port state by calling the function GetThemeDrawingState and restore the port state by calling the function SetThemeDrawingState , supplying the value obtained in the outState parameter of GetThemeDrawingState , after you have completed all of your drawing.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)